<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>确认收货</title>
		<meta name="keywords" content="知果汇" />
		<meta name="description" content="知果汇" />
		<link rel="SHORTCUT ICON" href="_IMG_/favicon.ico" />
		<style type="text/css">
			html,body{width: 560px;height: auto;margin: 0;padding: 0;}
			p{margin: 0;}
			.fl{float: left;}
			form{width: 520px;padding: 20px;}
			.formItem{overflow: hidden;}
			.formItem label{font-size: 14px;color: #333333;}
			.products{overflow: hidden;width: 470px;}
			.products img{width: 120px;height: 120px;float: left;}
			.products p{width: 340px;display: inline-block;float: left;padding-left: 10px;margin-bottom: 15px;}
			.productName{font-size: 14px;color: #333333;}
			.greyTag{color: #999999;font-size: 12px;width: 70px;display: inline-block;}
			.types,.services{font-size: 11px;color: #333333;}
			.prices{font-size: 14px;color: #FF4900;}
			.mt10{margin-top: 10px;}
			.code{padding: 5px 10px;}
		</style>
	</head>
	<body>
		<form action="" method="post">
			<div class="formItem">
				<div class="products" name="products">
					<img src="" alt=""/>
					<p class="productName"></p>
					<p class="pricesNum"><span class="greyTag">价格</span><span class="prices">￥0.00</span></p>
					<p class="types"><span class="greyTag">类型</span><span class="productType">服务类商品</span></p>
					<p class="services"><span class="greyTag">服务分类</span><span class="serviceType"></span></p>
				</div>
			</div>
			<div class="formItem mt10">
				<label>支付密码：</label>
				<input type="password" class="code" placeholder="请输入您的支付密码"/>
			</div>
		</form>
	</body>
	<script src="_JS_/jquery-1.8.3.min.js"></script>
	<script src="_JS_/jquery.base64.js"></script>
	<script src="_JS_/jquery.cookie.js"></script>
	<script src="_JS_/common.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			var url = window.location.href;
			var show = url.split("&");
			var id = show[0].split("=")[1];
			var type = show[1].split("=")[1];
			$.ajax({
				type: "get",
				url: "/index.php/api/form/order_details",
				data: {
					'id': id,
					'type': type
				},
				dataType: 'jsonp',
				success: function (msg) {
					if (msg.code == 200) {
						$('.products').find('img').attr('src', '/Images/serviceGoods/' + msg.data.image);
						$('.productName').html(msg.data.name);
						var money = number_format(msg.data.store, 2, ".", ",");
						$('.prices').html('￥' + money);
						$('.serviceType').html(msg.data.trading_name);
					}
					if (msg.code == 1000) {
						layer.msg('查询失败！', {icon: 5});
					}
				}
			});
		})
	</script>
</html>
